package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Memberbean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4956298733317559920L;
	private Memberactorbean actor ;
	private String actor_id ;
	private int role ;
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	public Memberactorbean getActor() {
		return actor;
	}
	public void setActor(Memberactorbean actor) {
		this.actor = actor;
	}
	public String getActor_id() {
		return actor_id;
	}
	public void setActor_id(String actor_id) {
		this.actor_id = actor_id;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Memberbean.class);
		}
		return null;
	}

}
